package com.dxy.yzs.marathon.mapper;

import com.dxy.yzs.marathon.domain.UserLabelRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Entity com.dxy.yzs.marathon.domain.UserLabelRelation
 */
public interface UserLabelRelationMapper extends BaseMapper<UserLabelRelation> {

    @Select("select count(distinct(user_id)) from user_label_relation where label_id = #{labelId}")
    Integer followerCount(@Param("labelId") Integer labelId);
}




